package cn.xenosp.server.module.certificate.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * ssl证书管理
 * @TableName bus_ssl_certificate
 */
@TableName(value ="bus_ssl_certificate")
@Data
public class SslCertificate implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private String id;

    /**
     * 
     */
    @TableField(value = "domain")
    private String domain;

    /**
     * 申请时间
     */
    @TableField(value = "issued_at")
    private Date issuedAt;
    @TableField(exist = false)
    private String issuedAtStart;
    @TableField(exist = false)
    private String issuedAtEnd;
    /**
     * 到期时间
     */
    @TableField(value = "expires_at")
    private Date expiresAt;
    @TableField(exist = false)
    private String expiresAtStart;
    @TableField(exist = false)
    private String expiresAtEnd;

    /**
     * 
     */
    @TableField(value = "update_number")
    private Integer updateNumber;

    @TableField(value = "remark")
    private String remark;

    /**
     * 
     */
    @TableField(value = "creator",fill = FieldFill.INSERT)
    private String creator;

    /**
     * 
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "updater",fill = FieldFill.INSERT_UPDATE)
    private String updater;

    /**
     * 
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 
     */
    @TableField(value = "deleted")
    private Boolean deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}